home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 32
/
Aminet 32 (1999)(Schatztruhe)[!][Aug 1999].iso
/
Aminet
/
dev
/
lang
/
Python151.lha
/
Python-1.5
/
Update_Previous
< prev
next >
Wrap
Text File
|
1999-04-29
|
2KB
|
73 lines
echo "*NThis will update your previous installation of Python 1.5.1."
echo "It will update both the build 14 and build 15 versions to build 18.*N"
assign >NIL: Python: exists
if WARN
echo "You have no Python: assign! aborting..."
quit
endif
if NOT EXISTS Python:Python
echo "Can't find the Python executable (expecting Python:Python)"
echo "Sorry, but this script expects a standard installation."
echo "If you changed things yourself, you should be able to update"
echo "by hand too. (Examine this script to see what should be updated)."
echo "Aborting."
skip exit
endif
;; Check the version
set VEROK `python:python -S -c "import sys,string; print (string.find(sys.version,'1.5.1 (#14') >=0) or (string.find(sys.version,'1.5.1 (#15')>=0)"`
if $VEROK GT 0
skip updateit
else
echo "Incorrect version of Python found. You should first install"
echo "at least version 1.5.1 build #14, or the patched one, build #15."
echo "Aborting."
skip exit
endif
lab updateit
ask "Press Enter:"
echo "------ Python 1.5.1 Upgrade ------*N"
echo "------ Copying new files and replacing old files ------*N"
set echo on
copy README Python: CLONE
copy CHANGES Python: CLONE
copy CHANGES.info Python: CLONE
failat 20
makedir Python:Lib/Python1.5/lib-dynload
failat 10
copy Lib/Python1.5/lib-dynload/#? Python:Lib/Python1.5/lib-dynload/ CLONE
copy RunTest.py Python: CLONE
copy RunTest.py.info Python: CLONE
copy Lib/site-python/ARexx.py Python:Lib/site-python/ CLONE
copy Docs/Amiga/#? Python:Docs/Amiga/ CLONE
copy Demo/metaclasses/#? Python:Demo/metaclasses/ CLONE
copy Demo/scripts/#? Python:Demo/scripts/ CLONE
copy Demo/classes/#? Python:Demo/classes/ CLONE
delete Python:Lib/site-python/#?.py[o|c] FORCE
delete Python:Lib/Python1.5/os.py[o|c] FORCE
copy Python_030 Python:Python CLONE
set echo off
echo "*N------ DONE! Updated to Python 1.5.1 build #18 ------*N"
ask "Press Enter:"
lab exit
unset VEROK